#!/usr/bin/env python3.9
# -*- encoding: utf-8 -*-
"""
@文件        :serializers.py
@说明        : 
@时间        :2022/12/05 08:10:18
@作者        :Mars
@版本        :1.0
"""


from rest_framework import serializers

from .models import FuncPrice, MiniAppConfig


class FuncPriceSerializer(serializers.ModelSerializer):
    """功能价格序列化器"""

    class Meta:
        model = FuncPrice
        fields = (
            "make_idphoto",
            "clip_photo",
            "change_bg",
            "compress_photo",
            "human_style",
        )


class MiniAppConfigSerializer(serializers.ModelSerializer):
    """小程序前端设置"""

    class Meta:
        model = MiniAppConfig
        fields = (
            "app_name",
            "share_title",
            "share_img",
            "share_path",
            "wait_text",
            "wait_logo",
        )
